package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.po.User;

import java.util.List;

public interface IUserService extends IService<User> {
    /**
     * 根据id扣减余额
     * @param id
     * @param money
     */
    void deductBalanceById(Long id, Integer money);


    /**
     * 查询用户列表
     * @return
     */
    List<User> queryUsers(String name, Integer status, Integer minBalance, Integer maxBalance);
}
